package Week4.J0508;

import java.util.Scanner;

public class 爱丽丝的人偶_xv {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();

        int left = 1; int right = n;
        while (left <= right) {
            System.out.print(left++ + " ");
            if (left <= right) {
                System.out.print(right-- + " ");
            }
        }
    }
}
